package com.acme.bankapp.domain.bank;

import com.acme.bankapp.domain.exceptions.NotEnoughFundsException;

import java.io.Serializable;

/**
 * Created by zurdan on 14.11.14.
 * E-mail: Zurdanium@gmail.com
 */
public interface Account extends Serializable{
    void deposit(double amount);
    void withdraw(double amount) throws NotEnoughFundsException;
    double getBalance();
    double maximumAmountToWithdraw();
}
